import React, {useCallback, useState, useEffect, useMemo} from 'react';
import Echarts from 'echarts-for-react';
import {Button, Card} from 'antd';

const LineChartCard = props => {
    const {onExport, options} = props;
    return (
        <div style={{textAlign: 'right'}}>
            <Button onClick={onExport}>
                明细导出
            </Button>
            {options && <Echarts option={options} />}
        </div>
    );
};

export default LineChartCard;
